package com.hzy.seataorder.order.service;

import com.hzy.common.entities.CommonResult;
import com.hzy.storage.entities.Storage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * 这里填写描述
 * 填写修改说明
 *
 * @author hzy
 * @version Revision:v1.0
 * @since Date:2022-03-15 15:33
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {

    @PostMapping("/account/decrease")
    CommonResult<Storage> decrease(@RequestParam("userId") String userId, @RequestParam("money") BigDecimal money);

}
